package com.dragon.pojo.contest;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ContestInfo {
    private Integer ContestId;

    private String contestName;

    private String description;

    private Integer type; // 0-Public 1-Private

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    private Integer problemTotal;

    private List<Integer> problemIdList;

    private List<Integer> userIdList;

    private String creator;
}
